import service from '@/utils/request'

// @Tags TbaNumberSetting
// @Summary 创建TBA指定编号对应配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TbaNumberSetting true "创建TBA指定编号对应配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /tbaNumberSetting/createTbaNumberSetting [post]
export const createTbaNumberSetting = (data) => {
  return service({
    url: '/tbaNumberSetting/createTbaNumberSetting',
    method: 'post',
    data
  })
}

// @Tags TbaNumberSetting
// @Summary 删除TBA指定编号对应配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TbaNumberSetting true "删除TBA指定编号对应配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /tbaNumberSetting/deleteTbaNumberSetting [delete]
export const deleteTbaNumberSetting = (params) => {
  return service({
    url: '/tbaNumberSetting/deleteTbaNumberSetting',
    method: 'delete',
    params
  })
}

// @Tags TbaNumberSetting
// @Summary 批量删除TBA指定编号对应配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除TBA指定编号对应配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /tbaNumberSetting/deleteTbaNumberSetting [delete]
export const deleteTbaNumberSettingByIds = (params) => {
  return service({
    url: '/tbaNumberSetting/deleteTbaNumberSettingByIds',
    method: 'delete',
    params
  })
}

// @Tags TbaNumberSetting
// @Summary 更新TBA指定编号对应配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.TbaNumberSetting true "更新TBA指定编号对应配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /tbaNumberSetting/updateTbaNumberSetting [put]
export const updateTbaNumberSetting = (data) => {
  return service({
    url: '/tbaNumberSetting/updateTbaNumberSetting',
    method: 'put',
    data
  })
}

// @Tags TbaNumberSetting
// @Summary 用id查询TBA指定编号对应配置
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.TbaNumberSetting true "用id查询TBA指定编号对应配置"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /tbaNumberSetting/findTbaNumberSetting [get]
export const findTbaNumberSetting = (params) => {
  return service({
    url: '/tbaNumberSetting/findTbaNumberSetting',
    method: 'get',
    params
  })
}

// @Tags TbaNumberSetting
// @Summary 分页获取TBA指定编号对应配置列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取TBA指定编号对应配置列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /tbaNumberSetting/getTbaNumberSettingList [get]
export const getTbaNumberSettingList = (params) => {
  return service({
    url: '/tbaNumberSetting/getTbaNumberSettingList',
    method: 'get',
    params
  })
}
